package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.StockInDao;
import com.ericom.model.StockIn;
@Repository("stockInDao")
public class StockInDaoHibernate extends GenericDaoHibernate<StockIn, Long> implements
		StockInDao {

	public StockInDaoHibernate(){
		super(StockIn.class);
	}

	public List<StockIn> findStockInByProduct(Long productId) {
		return this.getHibernateTemplate().find("from StockIn where productId=?",productId);
	}

}
